﻿<phone:PhoneApplicationPage
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone"
    xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:toolkit="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone.Controls.Toolkit"
    x:Class="HomeController.MainPage"
    mc:Ignorable="d"
    FontFamily="{StaticResource PhoneFontFamilyNormal}"
    FontSize="{StaticResource PhoneFontSizeNormal}"
    Foreground="{StaticResource PhoneForegroundBrush}"
    SupportedOrientations="Portrait" Orientation="Portrait"
    shell:SystemTray.IsVisible="True">

    <!--LayoutRoot 是包含所有页面内容的根网格-->
    <Grid x:Name="LayoutRoot" Background="Transparent">
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="*"/>
        </Grid.RowDefinitions>

        <!--TitlePanel 包含应用程序的名称和页标题-->
        <StackPanel x:Name="TitlePanel" Grid.Row="0" Margin="12,17,0,28">
            <TextBlock Text="HomeController" Style="{StaticResource PhoneTextNormalStyle}" Margin="12,0"/>
            <TextBlock Text="智能家居" Margin="9,-7,0,0" Style="{StaticResource PhoneTextTitle1Style}"/>
        </StackPanel>

        <!--ContentPanel - 在此处放置其他内容-->
        <Grid x:Name="ContentPanel" Grid.Row="1" Background="DimGray" Margin="12,0,12,0">
            <StackPanel>
                <TextBlock Text="等待连接" FontSize="40" Width="160" Height="60" Foreground="Red" HorizontalAlignment="Center"/>
                <TextBlock Name="tb_IP" FontSize="24"/>
                <Grid>
                      <TextBlock Text="灯光控制" Height="50" FontSize="38" Margin="39,60,266,497"/>
                      <TextBlock Text="亮度调节" Height="50" FontSize="38" Margin="39,150,266,407"/>
                      <toolkit:ToggleSwitch IsEnabled="False" HorizontalAlignment="Left" Margin="242,47,0,0" VerticalAlignment="Top"/>
                      <Slider HorizontalAlignment="Left" IsEnabled="False" Margin="39,222,0,0" VerticalAlignment="Top" Width="359"/>
                 </Grid>
            </StackPanel>
        </Grid>
    </Grid>

</phone:PhoneApplicationPage>